//public class AbstractTest01 {
//    public static void main(String[] args) {
//        Animal a = new Dog();
//        a.doSome();  //狗玩
//    }
//}
//
//class Animal
//{
//    public void doSome(){
//        System.out.println("玩");
//    }
//}
//
//class Dog extends Animal{
//    public void doSome(){
//        System.out.println("狗玩");
//    }
//}


public class AbstractTest01 {
    public static void main(String[] args) {
        Animal a = new Dog();
        a.doSome();
    }
}

abstract class Animal
{
    public abstract void doSome();
}

class Dog extends Animal{
    public void doSome(){
        System.out.println("狗玩");
    }
}
